package com.xingu.xg.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author luo
 */
@Data
public class AddNodeQuery {
    @ApiModelProperty("当前选中ID")
    @NotNull(message = "当前选中ID不能为空")
    private Integer selectedId;

    @ApiModelProperty("新增节点名称")
    private String name;

    @ApiModelProperty("新增节点排序,1操作节点之前(before),2操作节点之后(after),3操作节点之内(in),4操作节点之外(create parent)")
    @NotNull(message = "服务器需要知道您想要把新节点创建到哪里")
    private Integer createType;
}